Crate fuel_core_storage
source ·Expand description
The crate fuel-core-storage
contains storage types, primitives, tables used by fuel-core
.
This crate doesn’t contain the actual implementation of the storage. It works around the
Database
and is used by services to provide a default implementation. Primitives
defined here are used by services but are flexible enough to customize the
logic when the Database
is known.
Modules
- Iterators returned by the storage.
- The module contains definition of storage tables used by default implementation of fuel services.
- The primitives to work with storage in transactional mode.
Macros
- Creates
StorageError::NotFound
error with file and line information inside.
Structs
- The FuelVM storage double key.
- The FuelVM storage double key.
- The wrapper around the storage that supports methods from
StorageInspect
andStorageMutate
. - The wrapper around the storage that supports only methods from
StorageInspect
.
Enums
- Error occurring during interaction with storage
Traits
- Storage operations for contract assets.
- When this trait is implemented, the underlying interpreter is guaranteed to have full functionality
- The helper trait to work with storage errors.
- Mappable type with
Key
andValue
. - Returns the merkle root for the
StorageType
per merkleKey
. The type should implement theStorageMutate
for theStorageType
. Per one storage, it is possible to have several merkle trees under differentKey
. - Helper trait for
StorageMutate
to provide user-friendly API to retrieve storage as mutable reference. - Helper trait for
StorageInspect
to provide user-friendly API to retrieve storage as reference. - Base read storage trait for Fuel infrastructure.
- Base storage trait for Fuel infrastructure.
- Base storage trait for Fuel infrastructure.
- Base storage trait for Fuel infrastructure.
- Base storage trait for Fuel infrastructure.
Type Definitions
- Merkle root alias type
- The storage result alias.